package com.tdf.webblog.service.serviceImpl;

import com.tdf.webblog.dao.AdminUserRoleDAO;
import com.tdf.webblog.entity.AdminUserRole;
import com.tdf.webblog.service.AdminUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminUserRoleServiceImpl implements AdminUserRoleService {

    @Autowired
    private AdminUserRoleDAO adminUserRoleDAO;

    @Override
    public List<AdminUserRole> listAllByUid(int uid) {
        return adminUserRoleDAO.findAllByUid(uid);
    }
}
